package com.my.yyr.base;

public enum DataStatusEnum {

    未确定("00","未确定"),
    已启用("55","已启用"),
    已禁用("77","已禁用");

    public static String getStatusName(String code){
        DataStatusEnum[] values = DataStatusEnum.values();
        for (DataStatusEnum value :values) {
            if(value.code.equals(code)){
                return value.getName();
            }
        }
        return null;
    }

    private String code;
    private String name;

    DataStatusEnum(String code, String name){
        this.code = code;
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public String getName() {
        return name;
    }


}
